package com.lyouu.dataminer.util;

import java.io.IOException;
import java.util.Properties;

public class Configure {
	private static Properties property = new Properties();

	static {
		try {
			property.load(Configure.class
					.getResourceAsStream("/configure.properties"));
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(-1);
		}
	}

	public static String getProperty(String key) {
		return property.getProperty(key);
	}

	public static String getProperty(String key, String defaultValue) {
		return property.getProperty(key, defaultValue);
	}
}
